package com.echo.context;

public class AiUserIdContext {
    //处理线程存储的

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setAiUserIdContext(String id) {
        threadLocal.set(id);
    }

    public static String getAiUserIdContext() {
        return threadLocal.get();
    }

    public static void removeAiUserIdContext() {
        threadLocal.remove();
    }
}
